<template>
  <div>
    <input type="text" @keyup.enter="fn" />
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {}
  },
  methods: {
    fn() {
      console.log('按下了回车键')
    },
  },
}
</script>

<style scoped lang="less"></style>
